package com.bayair.doctor.utils;

import java.util.regex.Pattern;

public class RegexUtils {
    /**
     *  正则：手机号（简单）, 1字头+[34578] +9位数字即可.
     * @param phone
     * @return
     */
    public static boolean validateMobilePhone(String phone) {
        Pattern pattern = Pattern.compile("^1[34578]\\d{9}$");
        return pattern.matcher(phone).matches();
    }

}
